package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Mapper
public interface UserMapper {
    @Select("select * from user where openId = #{openid}")
    User selectByOpenId(String openid);

    void insert(User user1);


    @Select("select * from user where id = #{userId}")
    User getById(Long userId);


    Integer selectSumUser(LocalDateTime beginTime, LocalDateTime endTime);
}
